<template>
  <div class="my-header" :style="{backgroundColor:bg,color:color}">
    拼刀刀
  </div>
</template>

<script>
export default {
  props:{
    bg:{
      type:String,
      require:true
    },
    color:{
      type:String,
      require:true
    }
  }
}
</script>

<style lang="less" scoped>
.my-header {
  height: 50px;
  line-height: 50px;
  text-align: center;
  font-size: 16px;
  background-color: red;
  color: #fff;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
}
</style>